<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ include file="/jspf/public.jspf"%>
</head>

<body>
	<a href="${shop}/send_public_index.action">直接到后台</a>
	<br /> 显示首页商品信息:
	<br />
	<table width="700" border="1" cellspacing="0" cellpadding="0">
		<!-- 此处大循环, 显示有多少个List对象 -->
		<c:forEach items="${applicationScope.bigList}" var="goodsList">
		<tr>
			<td>
				<table width="100%%" border="1" cellspacing="0" cellpadding="0">
				   <tr>
				        <!-- 合并4列用来显示类别信息 -->
				   		<td colspan="4">
				   		   ${goodsList[0].category.type}
				   		</td>
				   </tr>
					<tr>
						<!-- 此处循环,用来显示具体的商品信息 -->
						<c:forEach items="${goodsList}" var="goods">
						<td>
							<table width="100%%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><img src="${shop}/image/${goods.pic}" /></td>
								</tr>
								<tr>
									<td>${goods.name}</td>
								</tr>
								<tr>
									<td>${goods.price} <a href="${shop}/goods_get$.action?id=${goods.id}">详细</a></td>
								</tr>
							</table>
						</td>
						</c:forEach>
						<!-- 小循环结束 -->
					</tr>
				</table>
				</td>
			</tr>
		</c:forEach>
		<!--大循环结束 -->
	</table>
</body>
</html>
